﻿using ITXHWEB.Models;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Web.Mvc;
using WPFExcelReport;
using WPFExcelReport.Helpers;
using ITXHWEB.Infrastructure;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace ITXHWEB.Controllers
{
    public partial class SDDATController : ITXController
    {

        [ChildActionOnly]
        public ActionResult MKE00(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("000");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE00(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE01(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("001");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE01(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = "001";
                VSD = LDKEY("001");
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE02(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("002");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE02(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = "002";
                VSD = LDKEY("002");
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return RedirectToLocal(Url.Action("SHWRQI03"));

            //return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE03(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("003");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE03(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE04(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("004");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE04(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE05(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("005");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE05(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE06(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("006");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE06(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE07(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("007");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE07(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE08(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("008");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE08(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE09(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("009");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE09(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }

        [ChildActionOnly]
        public ActionResult MKE10(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("010");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE10(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE11(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("011");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE11(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE12(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("012");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE12(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE13(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("013");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE13(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE14(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("014");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE14(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE15(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("015");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE15(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE16(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("016");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE16(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE17(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("017");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE17(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE18(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("018");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE18(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        [ChildActionOnly]
        public ActionResult MKE19(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("019");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE19(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }
        public ActionResult MKE20(string returnUrl)
        {
            ModelState.Clear();
            SDDATModel VSD = LDKEY("20");
            ViewBag.ReturnUrl = returnUrl;
            return PartialView(VSD);
        }
        [HttpPost]
        [AllowAnonymous]
        [ValidateAntiForgeryToken]
        public ActionResult MKE20(SDDATModel VSD, string returnUrl)
        {

            try
            {
                MABF.VWBB.CERK.CERROR.EKEY = VSD.ERKEY;
            }
            catch (Exception ex)
            {
                //VKPAUF = ex.Message;
                Tracer.Error(ex.StackTrace, ex);
            }
            return PartialView(VSD);
        }


    }
}
